﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) Company.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.CodeDom
{
	using System;
	using System.Collections.Generic;
	using System.CodeDom;
	using System.Linq;
	using System.Text;

	public static partial class Mixin 
	{

		public static CodeMethodInvokeExpression Invoke(this CodeMethodReferenceExpression unit)
		{
			return new CodeMethodInvokeExpression(unit, new CodeExpression[] { });
		}

		public static CodeMethodInvokeExpression Invoke(this CodeMethodReferenceExpression unit, IEnumerable<CodeExpression> parameters)
		{
			return new CodeMethodInvokeExpression(unit, parameters.ToArray());
		}
	}
}
